#ifndef WIDGET_H
#define WIDGET_H


#include <QDebug>
#include <QWidget>
#include <QThread>
#include <QTest>
#include <QTime>
#include "sniffer.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    //刷新设备列表
    void on_pushButton_clicked();
    //开始捕获
    void on_pushButton_2_clicked();
    //停止捕获
    void on_pushButton_3_clicked();
    //筛选
    void on_pushButton_4_clicked();

    void on_tableWidget_currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous);

private:
    Ui::Widget *ui;
    Sniffer sniffer;
    QThread * snifferT;
    QStringList tableHeaders;
};
#endif // WIDGET_H
